builder: Add gtk_builder_set_current_object()
authorBenjamin Otte <otte@redhat.com>
Thu, 28 Nov 2019 03:01:19 +0000 (04:01 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 12 Dec 2019 18:12:11 +0000 (19:12 +0100)
commit1f94028ff77d1bfc8550a7dd9c9623e75a5b9943
treeea1f0cc2b43e2ae9720b6e2698aa7cff79cbc0cf
parent512c4c13a6098001148f2cabc8b692c182bd97bb
builder: Add gtk_builder_set_current_object()

Use it as the default object for expression binds and when connecting
signals. It is intended to work kind of as the "this" object while
parsing. In fact, the term "current object" was stolen from the Java
docs and various C++ tutorials for the this pointer.

Set the current object in gtk_widget_init_template() and
GtkListItemBuilder.

This more-or-less replaces the object passed to
gtk_builder_connect_signals() in GTK3.
docs/reference/gtk/gtk4-sections.txt
gtk/gtkbuilder.c
gtk/gtkbuilder.h
gtk/gtkwidget.c